package com.baizhi.service;

import com.baizhi.entity.User;
import com.baizhi.entity.Video;
import com.baizhi.po.VideoPO;
import com.baizhi.vo.CommonQueryPageVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;

public interface VideoService {

    HashMap<String,Object> update(Video video);
    CommonQueryPageVO queryAllPages(Integer page, Integer pageSize);


    void updates(Video video) ;

    void add(Video video);

    HashMap<String,String> uploadHeadImg(MultipartFile videoFile);

    void delete(Video video);
    Video queryById(String id);

    List<VideoPO> queryByReleaseTime();

    List<Video> searchVideo(String content) throws IOException;
}
